<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>C++学习中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Arial, sans-serif;
        }

        body {
            background-color: #f0f4f8;
        }

        nav {
            background: #2c3e50;
            padding: 1rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav a {
            color: white;
            text-decoration: none;
            margin-right: 2rem;
            font-weight: 500;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #3498db;
        }

        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        .hero {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 4rem 2rem;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 2rem;
        }

        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        footer {
            background: #2c3e50;
            color: white;
            text-align: center;
            padding: 1rem;
            position: relative;
            bottom: 0;
            width: 100%;
        }

        .code-img {
            width: 100%;
            max-width: 600px;
            margin: 1rem auto;
            display: block;
            border-radius: 8px;
        }
    </style>
</head>
<body>
    <nav>
        <a href="/">首页</a>
        <a href="/tutorial">教程</a>
        <a href="/examples">代码示例</a>
        <a href="/exercises">练习题</a>
        <a href="/forum">社区</a>
    </nav>

    <div class="container">
        <div class="hero">
            <h1>掌握C++编程艺术</h1>
            <p>从基础语法到高级特性，开启你的编程之旅</p>
        </div>

        <img src="images/image1.jpg" alt="C++代码示例" class="code-img">

        <div class="card-container">
            <div class="card">
                <h3>新手入门</h3>
                <p>学习基本语法、数据类型和流程控制</p>
                <button>开始学习</button>
            </div>
            
            <div class="card">
                <h3>面向对象</h3>
                <p>类与对象、继承、多态等核心概念</p>
                <button>探索内容</button>
            </div>

            <div class="card">
                <h3>标准库</h3>
                <p>STL容器、算法和实用工具详解</p>
                <button>查看文档</button>
            </div>
        </div>
    </div>

    <footer>
        <p>© 2023 C++学习中心 京ICP备12345678号</p>
    </footer>
</body>
</html>